package com.shoe.service;

import com.shoe.pojo.ShoeOrder;
import com.shoe.pojo.ShoeOrderMoney;
import com.shoe.vo.OrderVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface ShoeOrderService {

    int addOrder(ShoeOrder shoeOrder);

    List<OrderVo> selectbyId(Long userId);

    int updataDate(ShoeOrder shoeOrder);

    int selectByNo(ShoeOrder shoeOrder);

    List<ShoeOrder> selectByNo2(ShoeOrder shoeOrder);



    List<ShoeOrder> selectAll();
    List<ShoeOrder> selectPage(Integer page, Integer limit);
    int updateOrder(ShoeOrder shoeOrder);
    int deleteOrder(Long orderId);
    List<ShoeOrder> selectClassify(ShoeOrder shoeOrder, String time);
    List<ShoeOrderMoney> selectOrderMoney(String date1, String date2);

    //根据orderNo删除
    int deleteByorderNo(String orderNo);

}
